<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSettingBannerImagesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('setting_banner_images', function (Blueprint $table) {
            $table->engine = 'InnoDB';
            $table->charset = 'utf8mb4';
            $table->comment = '首页扒窗设置表';
            $table->increments('id');
            $table->string('img_url')->default('')->comment('扒图url');
            $table->tinyInteger('is_show')->default(2)->comment('是否展示 1展示 2不展示');
            $table->text('url')->comment('超链接');
            $table->string('title')->default('')->comment('标题');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('setting_banner_images');
    }
}
